package com.example.datas;

public class Constants {

	public static String getGameMapById(int id){
		switch (id){
		case 1:
		case 2:
			return "Summoner's Rift";
		case 4:
		case 10:
			return "Twisted Treeline";
		case 3:
			return "Proving Grounds";
		case 8:
			return "Crystal Scar";
		case 12:
			return "Howling Abyss";
		default:
			return "Uknown map.id";
		}
	}
	public static String getError(int code){
    	switch (code) {
        case 429:
            return "API Limit reached";
        case 401:
            return "Unauthorized";
        case 400:
            return "Bad request";
        case 500:
            return "Internal server error";
        case 404:
            return "Data not found";
        case 503:
            return "Service unavailable";
    	}
    	return "UNKNOWN.API.ERROR";
    }

	public String getMap(int id){
		switch(id){
		case 1:
			return "Summoner's Rift";
		case 2:
			return "Summoner's Rift";
		case 3:
			return "Proving Grounds";
		case 4:
			return "Twisted Treeline";
		case 8:
			return "The Crystal Scar";
		case 10:
			return "Twisted Treeline";
		case 12:
			return "Howling Abyss";
		}
		return"MAPID.ERROR";
	}
	public static String getGameMode(String mode){
		if(mode.equals("CLASSIC"))
			return "Classic";
		if(mode.equals("ODIN"))
			return "Dominion";
		if(mode.equals("ARAM"))
			return "Aram";
		if(mode.equals("TUTORIAL"))
			return "Tutorial";
		if(mode.equals("ONEFORALL"))
			return "OneForAll";
		if(mode.equals("FIRSTBLOOD"))
			return "FirstBlood";
		return"MODE.ERROR";
	}
	public static String getGameSubType(String mode){
		if(mode.equals("NONE"))
			return "Custom";
		if(mode.equals("ODIN_UNRANKED")
				||mode.equals("NORMAL") ||mode.equals("NORMAL_3x3"))
			return "Normal";
		if(mode.equals("BOT")||mode.equals("BOT_3x3")||mode.equals("URF_BOT"))
			return "VS Bots";
		if(mode.equals("ONEFORALL_5x5"))
			return "Normal";
		if(mode.equals("FIRSTBLOOD_1X1"))
			return "1v1";
		if(mode.equals("FIRSTBLOOD_2x2"))
			return "2v2";
		if(mode.equals("SR_6x6"))
			return "Hexakill";
		if(mode.equals("CAP_5x5"))
			return "TeamBuilder";
		if(mode.equals("URF"))
			return "URF";
		if(mode.equals("RANKED_SOLO_5x5")||mode.equals("RANKED_TEAM_5x5")||mode.equals("RANKED_TEAM_3x3"))
			return "Ranked";
		return"SUBTYPE.ERROR";
	}
	
	public static String getChampionName(int id){
		switch (id){
		case 266:
			return "Aatrox";
		case 103:
			return "Ahri";
		case 84:
			return "Akali";
		case 12:
			return "Alistar";
		case 32:
			return "Amumu";
		case 34:
			return "Anivia";
		case 1:
			return "Annie";
		case 22:
			return "Ashe";
		case 53:
			return "Blitzcrank";
		case 63:
			return "Brand";
		case 51:
			return "Caitlyn";
		case 69:
			return "Cassiopeia";
		case 31:
			return "Chogath";
		case 42:
			return "Corki";
		case 122:
			return "Darius";
		case 131:
			return "Diana";
		case 36:
			return "DrMundo";
		case 119:
			return "Draven";
		case 60:
			return "Elise";
		case 28:
			return "Evelynn";
		case 81:
			return "Ezreal";
		case 9:
			return "Fiddlestick";
		case 114:
			return "Fiora";
		case 105:
			return "Fizz";
		case 3:
			return "Galio";
		case 41:
			return "Gangplank";
		case 86:
			return "Garen";
		case 79:
			return "Gragas";
		case 104:
			return "Graves";
		case 120:
			return "Hecarim";
		case 74:
			return "Heimerdinger";
		case 39:
			return "Irelia";
		case 40:
			return "Janna";
		case 59:
			return "JarvanIV";
		case 24:
			return "Jax";
		case 126:
			return "Jayce";
		case 222:
			return "Jinx";
		case 43:
			return "Karma";
		case 30:
			return "Karthus";
		case 38:
			return "Kassadin";
		case 55:
			return "Katarina";
		case 10:
			return "Kayle";
		case 85:
			return "Kennen";
		case 121:
			return "Khazix";
		case 96:
			return "Kogmaw";
		case 7:
			return "Leblanc";
		case 64:
			return "LeeSin";
		case 89:
			return "Leona";
		case 127:
			return "Lissandra";
		case 236:
			return "Lucian";
		case 117:
			return "Lulu";
		case 99:
			return "Lux";
		case 54:
			return "Malphite";
		case 90:
			return "Malzahar";
		case 57:
			return "Maokai";
		case 11:
			return "MasterYi";
		case 21:
			return "MissFortune";
		case 62:
			return "MonkeyKing";
		case 82:
			return "Mordekaiser";
		case 25:
			return "Morgana";
		case 267: 
			return "Nami";
		case 75:
			return "Nasus";
		case 111:
			return "Nautilus";
		case 76: 
			return "Nidalee";
		case 56:
			return "Nocturne";
		case 20:
			return "Nunu";
		case 2:
			return "Olaf";
		case 61:
			return "Orianna";
		case 80:
			return "Pantheon";
		case 78:
			return "Poppy";
		case 133:
			return "Quinn";
		case 33:
			return "Rammus";
		case 58:
			return "Renekton";
		case 107:
			return "Rengar";
		case 92:
			return "Riven";
		case 68:
			return "Rumble";
		case 13:
			return "Ryze";
		case 113:
			return "Sejuani";
		case 35:
			return "Shaco";
		case 98:
			return "Shen";
		case 102:
			return "Shyvana";
		case 27:
			return "Singed";
		case 14:
			return "Sion";
		case 15:
			return "Sivir";
		case 72:
			return "Skarner";
		case 37:
			return "Sona";
		case 16:
			return "Soraka";
		case 50:
			return "Swain";
		case 134:
			return "Syndra";
		case 91:
			return "Talon";
		case 44:
			return "Taric";
		case 17:
			return "Teemo";
		case 412: 
			return "Thresh";
		case 18:
			return "Tristana";
		case 48:
			return "Trundle";
		case 23:
			return "Tryndamere";
		case 4:
			return "TwistedFate";
		case 29:
			return "Twitch";
		case 77:
			return "Udyr";
		case 6:
			return "Urgot";
		case 110:
			return "Varus";
		case 67:
			return "Vayne";
		case 45:
			return "Veigar";
		case 161:
			return "Velkoz";
		case 254:
			return "Vi";
		case 112:
			return "Viktor";
		case 8:
			return "Vladimir";
		case 106:
			return "Volibear";
		case 19:
			return "Warwick";
		case 101:
			return "Xerath";
		case 5:
			return "XinZhao";
		case 157:
			return "Yasuo";
		case 83:
			return "Yorick";
		case 154:
			return "Zac";
		case 238:
			return "Zed";
		case 115:
			return "Ziggs";
		case 26:
			return "Zilean";
		case 143:
			return "Zyra";						
		}
		return "CHAMPID.ERROR";
	}
}
